package com.yxd.bdmapdemo.utils;


import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/3/24.
 */

public class LoginResponse {


    /**
     * errno : 0
     * errmsg : 成功
     * data : {"uid":7,"token":"7LbKQEfH3X0Ojzsko","mobile":"13960593113","nick_name":"","real_name":"jjl","citizen_no":"","sex":0,"email":"","city_code":"0591","auth_status":0,"deli_add":{"default":"home_1","deli_add":{"home1":{"add_detail":"南区4号楼","add_head":"福建省,福州市,仓山区,福建农林大学"},"company":{"add_detail":"2号楼526室","add_head":"福建省,福州市,仓山区,万达SOHO"},"other":{"add_detail":"F区A楼百度大厦16层","add_head":"福建省,福州市,鼓楼区,软件园"}}},"Picture":{"user.avatar":[{"key":"7.user.avatar.1","url":"http://opbbi4acs.bkt.clouddn.com/7.user.avatar.1?e=1494207217&token=viOt_fiA3qqyuzEuwMog26ozlmHoZjBjWh5OQWms:3rbXEQAfNwpMcPSB6IwffUc6_7Q"}]}}
     */

    public int errno;
    public String errmsg;
    public DataBean data;

    public static class DataBean implements Serializable {
        /**
         * uid : 7
         * token : 7LbKQEfH3X0Ojzsko
         * mobile : 13960593113
         * nick_name :
         * real_name : jjl
         * citizen_no :
         * sex : 0
         * email :
         * city_code : 0591
         * auth_status : 0
         * deli_add : {"default":"home_1","deli_add":{"home1":{"add_detail":"南区4号楼","add_head":"福建省,福州市,仓山区,福建农林大学"},"company":{"add_detail":"2号楼526室","add_head":"福建省,福州市,仓山区,万达SOHO"},"other":{"add_detail":"F区A楼百度大厦16层","add_head":"福建省,福州市,鼓楼区,软件园"}}}
         * Picture : {"user.avatar":[{"key":"7.user.avatar.1","url":"http://opbbi4acs.bkt.clouddn.com/7.user.avatar.1?e=1494207217&token=viOt_fiA3qqyuzEuwMog26ozlmHoZjBjWh5OQWms:3rbXEQAfNwpMcPSB6IwffUc6_7Q"}]}
         */

        public int uid;
        public String token;
        public String mobile;
        public String nick_name;
        public String real_name;
        public String citizen_no;
        public int sex;
        public String email;
        public String city_code;
        public int auth_status;
        public DeliAddBeanX deli_add;
        public PictureBean Picture;

        public static class DeliAddBeanX implements Serializable {
            /**
             * default : home_1
             * deli_add : {"home1":{"add_detail":"南区4号楼","add_head":"福建省,福州市,仓山区,福建农林大学"},"company":{"add_detail":"2号楼526室","add_head":"福建省,福州市,仓山区,万达SOHO"},"other":{"add_detail":"F区A楼百度大厦16层","add_head":"福建省,福州市,鼓楼区,软件园"}}
             */

            @SerializedName("default")
            public String defaultX;
            public DeliAddBean deli_add;

            public static class DeliAddBean implements Serializable {
                /**
                 * home1 : {"add_detail":"南区4号楼","add_head":"福建省,福州市,仓山区,福建农林大学"}
                 * company : {"add_detail":"2号楼526室","add_head":"福建省,福州市,仓山区,万达SOHO"}
                 * other : {"add_detail":"F区A楼百度大厦16层","add_head":"福建省,福州市,鼓楼区,软件园"}
                 */

                public Home1Bean home1;
                public CompanyBean company;
                public OtherBean other;

                public static class Home1Bean implements Serializable {
                    /**
                     * add_detail : 南区4号楼
                     * add_head : 福建省,福州市,仓山区,福建农林大学
                     */

                    public String add_detail;
                    public String add_head;


                    @Override
                    public String toString() {
                        return "Home1Bean{" +
                                "add_detail='" + add_detail + '\'' +
                                ", add_head='" + add_head + '\'' +
                                '}';
                    }
                }

                public static class CompanyBean implements Serializable {
                    /**
                     * add_detail : 2号楼526室
                     * add_head : 福建省,福州市,仓山区,万达SOHO
                     */

                    public String add_detail;
                    public String add_head;

                    @Override
                    public String toString() {
                        return "CompanyBean{" +
                                "add_detail='" + add_detail + '\'' +
                                ", add_head='" + add_head + '\'' +
                                '}';
                    }
                }

                public static class OtherBean implements Serializable {
                    /**
                     * add_detail : F区A楼百度大厦16层
                     * add_head : 福建省,福州市,鼓楼区,软件园
                     */

                    public String add_detail;
                    public String add_head;

                    @Override
                    public String toString() {
                        return "OtherBean{" +
                                "add_detail='" + add_detail + '\'' +
                                ", add_head='" + add_head + '\'' +
                                '}';
                    }
                }
            }
        }

        public static class PictureBean implements Serializable {
            @SerializedName("user.avatar")
            public List<User> _$UserAvatar206; // FIXME check this code

            public static class User implements Serializable {
                /**
                 * key : 7.user.avatar.1
                 * url : http://opbbi4acs.bkt.clouddn.com/7.user.avatar.1?e=1494207217&token=viOt_fiA3qqyuzEuwMog26ozlmHoZjBjWh5OQWms:3rbXEQAfNwpMcPSB6IwffUc6_7Q
                 */

                public String key;
                public String url;

                @Override
                public String toString() {
                    return "User{" +
                            "key='" + key + '\'' +
                            ", url='" + url + '\'' +
                            '}';
                }
            }
        }
    }
}
